package org.progin.cloudfolder.msg;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;

public class GotoRevPayload implements Payload {

	public int from, to;
	
	@Override
	public byte getId() {
		return Payload.GOTOREV;
	}

	@Override
	public void write(DataOutputStream os) throws IOException {
		os.writeInt(from);
		os.writeInt(to);
	}

	@Override
	public void read(DataInputStream is) throws IOException {
		from = is.readInt();
		to = is.readInt();
	}

}
